#include "driver/gpio.h"
#include "driver/spi_master.h"
#include "esp_err.h"
#include "esp_log.h"

#define BOARD_LED_PIN 48



void bsp_led_init(){
    gpio_config_t bk_gpio_config = {
        .mode = GPIO_MODE_OUTPUT,
        .pin_bit_mask = 1ULL << BOARD_LED_PIN
    };
    ESP_ERROR_CHECK(gpio_config(&bk_gpio_config));
}

void bsp_led_set_state(uint8_t flag){
    gpio_set_level(BOARD_LED_PIN, flag);
}
